//
//  HXAttentionTCell.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/5.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXAttentionTCell.h"
#import "HXAttentionCCell.h"
#import "HX_Macro.h"
#import "HXAttentViewModel.h"
@implementation HXAttentionTCell
- (void)setAttentView:(HXAttentViewModel *)attentView {
    _attentView = attentView;
    [self.imageHeader sd_setImageWithURL:[NSURL URLWithString:attentView.image]];
    [self.head_img sd_setImageWithURL:[NSURL URLWithString:attentView.head_img]];
    self.personName.text = attentView.nick;
    self.creatTime.text = attentView.create_time;

}
- (void)setUp {
   
    _collectionView.delegate = self;
    _collectionView.dataSource = self;
    self.collectionView.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:_collectionView];
    [_collectionView registerNib:[UINib nibWithNibName:@"HXAttentionCCell" bundle:[NSBundle mainBundle]] forCellWithReuseIdentifier:@"reuseAttentCell"];
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
    return 1;
}
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return 6;
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    HXAttentionCCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"reuseAttentCell" forIndexPath:indexPath];
    cell.backgroundColor = COLORAUTO;
    return cell;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
